/**
 * 图层
 */
var map, mapLayer;// 基础图层


/**
 * 模块管理器
 */
var faultAlarmMan = null;// 故障滚动条
var dailyFaultMan = null;// 保护日报
var iceWarningMan = null;// 覆冰预警
var thunderWarningMan = null;// 雷击预警
var typhoonForecastMan;// 台风预警
var weatherMan = null;// 气象预警
var faultDiscMan = null;// 故障分布
var weatherDiscMan;// 气象历史
var typhoonDiscMan;// 台风历史
var riskAlarmMan = null;// 风险告警
var riskEvaluateMan = null;// 风险评估
var travelingFaultDiscMain = null;//行波故障分布

/**
 * 当前地图状态
 */
var mapIsLoad = false;

function init() {
	//		getData();
	initFaultAlarm();// 故障滚动条
	initMap();
}

function initFaultAlarm() {
	faultAlarmMan = new FaultAlarmMan().show();
}
function clearAll() {
	$("#input_search").val('');
	if (faultDiscMan) {
		faultDiscMan.hide();
	}
	if (DailyFaultManException) {
		DailyFaultManException.clear();
	}
	if (protectionStatusMan) {
		protectionStatusMan.hide();
	}
	if (typhoonDiscMan) {
		typhoonDiscMan.hide();
		typhoonDiscMan.hideChart();
	}
	if (typhoonForecastMan) {
		typhoonForecastMan.hide();
	}
	if (riskAlarmMan) {
		riskAlarmMan.hide();
	}
	if (weatherDiscMan) {
		weatherDiscMan.hide();
	}
	if (document.getElementById("statistics")) {
		$("#statistics").remove();
	}
}


